package model

const (
	IsShowOK = 1
	IsShowNO = 2

	SoftwareVersionLow  = "7.1"
	SoftwareVersionHigh = "8.0"
)

type AppPasture struct {
	Id              int64  `json:"id"`
	Name            string `json:"name"`
	LoginUrl        string `json:"login_url"`
	CompanyUrl      string `json:"company_url"`
	LoginUser       string `json:"login_user"`
	LoginPassword   string `json:"login_password"`
	CompanyCode     string `json:"company_code"`
	ResellerCode    string `json:"reseller_code"`
	IsShow          int8   `json:"is_show"`
	SoftwareVersion string `json:"software_version"`
	CreatedAt       int64  `json:"created_at"`
	UpdatedAt       int64  `json:"updated_at"`
}

func (a *AppPasture) TableName() string {
	return "app_pasture"
}

type SessionModel struct {
	SessionId string `json:"session_id"`
	ApiUrl    string `json:"api_url"`
}
